{if $category}
<a href="admin/modules/tangra_cms/category/category_content.php?category={$category->get_id()}" class="action_back">Back to category &quot;{$category->get_title()}&quot;</a><br /><br />
{else}
<a href="admin/modules/tangra_cms/vpage/vpages.php" class="action_back">Back to virtual pages</a><br /><br />
{/if}

<table width="100%" border="1" cellspacing="0" cellpadding="0" class="info_page_main_table">
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                <tr>
                    <td class="info_page_section_title" width="100">Status</td>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="4">
                            <tr>
                                <td align="left" width="250" class="info_page_content_cell">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="4">
                                        <tr>
                                            <td width="48" height="48">{if $vpage->get_online()}<a href="http://{$_current_host}/{$vpage->get_path()}" target="_blank" {popup text="Click to go to this page (new window)"}><img src="/img/modules/tangra_cms/online.png" alt="page is online" width="48" height="48" border="0" /></a>{else}<img src="/img/modules/tangra_cms/offline.png" alt="page is offline" width="48" height="48" />{/if}</td>
                                            <td valign="middle" width="100"><span style="font-size:130%; font-weight:bold;">{if $vpage->get_online()}Online{else}Offline{/if}</span></td>
                                            <td>
                                            	{if $vpage->get_online()}
                                                	<a href="admin/modules/tangra_cms/vpage/vpage_manage.php?manage={$vpage->get_id()}&amp;online=0">Switch to offline</a>{if $items_linking_to_vpage_count}<br />(<span class="status_warning">WARNING: There are menu items linked to this virtual page. If you switch this page to offline published menu items will stop working!</span>){/if}
                                                {else}
                                                	{if !$missing_required_sa && !$missing_required_ci}
                                                	<a href="admin/modules/tangra_cms/vpage/vpage_manage.php?manage={$vpage->get_id()}&amp;online=1">Switch to online</a>                                                    
                                                    {else}
                                                    	{if $missing_required_sa}
                                                        	<span class="status_error">Some mandatory system attributes are not filled.</span>
                                                        {/if}
                                                        {if $missing_required_ci}
	                                                        <span class="status_error">Some mandatory content items are not filled.</span>
                                                        {/if}
                                                    {/if}
                                                {/if}
                                            </td>
                                            <td width="80">
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td align="center"><a href="modules/tangra_cms/tangra_cms.php?vpage={$vpage->get_id()}&amp;previewcode={$_tcms_preview_code}" target="_blank"><img src="/img/modules/tangra_cms/preview.png" alt="preview" width="32" height="32" border="0"/></a></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center"><a href="modules/tangra_cms/tangra_cms.php?vpage={$vpage->get_id()}&amp;previewcode={$_tcms_preview_code}" target="_blank">Preview</a></td>
                                                    </tr>
                                                </table>
                                            
                                            </td>                                            
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                <tr>
                    <td class="info_page_section_title" width="100">Base details</td>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="4">
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Path</td>
                                <td align="left" class="info_page_content_cell">{$vpage->get_path()}<br /> (<a href="http://{$_current_host}/{$vpage->get_path()}" target="_blank">http://{$_current_host}/{$vpage->get_path()}</a>)</td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Template</td>
                                <td align="left" class="info_page_content_cell">{$template_name}</td>
                            </tr>
                        </table>
                    </td>
                    <td class="info_page_link_cell" align="center" width="160">
						{if !$vpage->get_online()}
                        	{if $vpage->get_sys_generated()}
                            <span style="padding:4px;">System generated page.<br />Can't edit</span>
                            {else}
	                    	<a href="admin/modules/tangra_cms/vpage/vpage_edit.php?vpage_obj_id={$vpage->get_id()}" class="action_edit">Edit</a>
                            {/if}
                        {else}
                        	{if $vpage->get_sys_generated()}                        
                            <span style="padding:4px;">System generated page.<br />Can't edit</span>
                            {else}                            
                        	<span style="padding:4px;">Switch to offline to be able to edit</span>
                            {/if}
                        {/if}
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                <tr>
                    <td class="info_page_section_title" width="100">Attributes</td>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="4">
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">System attributes</td>
                                <td align="left" class="info_page_content_cell" colspan="2">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="4">
                                        <tr>
                                            <td>
                                            	{if $system_attributes}
                                                
                                                <table width="100%" border="0" cellspacing="1" cellpadding="2"  class="metallic_grid_table">
                                                	<tr>
                                                    	<td width="16" class="metallic_grid_header">&nbsp;</td>                                                    
                                                    	<td width="25%" class="metallic_grid_header"><strong>Name</strong></td>
                                                        <td width="1%" class="metallic_grid_header">&nbsp;<strong>Required?</strong>&nbsp;</td>
                                                    	<td width="25%" class="metallic_grid_header"><strong>Exported as</strong></td>
                                                    	<td width="50%" class="metallic_grid_header"><strong>Value</strong></td>
                                                        {if !$vpage->get_sys_generated()}                                                                                                                
                                                    	<td width="16" class="metallic_grid_header">&nbsp;</td>
                                                    	<td width="16" class="metallic_grid_header">&nbsp;</td>                                  
                                                        {/if}                      
                                                    </tr>
               										{foreach from=$system_attributes item=system_attribute}                                        
                                                    <tr class="metallic_grid_body" onmouseover="this.className='metallic_grid_body_over';return true;" onmouseout="this.className='metallic_grid_body';return true;">
											        	<td width="16">
                                                       	{if $system_attribute.vp_sa}
                                                        <img src="/img/modules/crystal_icons_small/16x16/led_green.png" alt="Filled" width="16" height="16" {popup text="Filled"}/>
                                                        {else}
                                                            {if $system_attribute.required}
                                                            <img src="/img/modules/crystal_icons_small/16x16/led_red.png" alt="Not filled. Reqiured. Must be filled" width="16" height="16" {popup text="Not filled. Reqiured. Must be filled"} />
                                                            {else}
                                                            <img src="/img/modules/crystal_icons_small/16x16/led_yellow.png" alt="Not filled" width="16" height="16" {popup text="Not filled"} />
                                                            {/if}
                                                        {/if}
                                                        </td>
                                                    	<td>{$system_attribute.sa_name|escape:"htmlall"}</td>
                                                        <td>{if $system_attribute.required}Yes{else}No{/if}</td>
                                                    	<td>{$system_attribute.export_name}</td>
                                                    	<td>
                                                        	{if $system_attribute.value}
                                                        	<span {popup text=$system_attribute.value}>{$system_attribute.value|truncate:80}</span>
                                                            {else}
                                                            {if $system_attribute.default_value}<em>(Default)</em> <span {popup text=$system_attribute.default_value}>{$system_attribute.default_value|truncate:80}</span>{else}<span class="no_value">No value</span>{/if}
                                                            {/if}
                                                        </td>
                                                        {if !$vpage->get_sys_generated()}                                                        
                                                    	<td width="16">
                                                        	{if $system_attribute.vp_sa}
                                                        	<a href="admin/modules/tangra_cms/vpage/vpage_system_attribute_edit.php?vpage_system_attribute_obj_id={$system_attribute.vp_sa}&amp;vpt_sa={$system_attribute.id}&amp;_transit_vpage={$vpage->get_id()}" {popup text="Click to edit this record"}><img src="/img/modules/crystal_icons_small/16x16/edit.png" alt="Edit" width="16" height="16" border="0"/></a>
                                                            {else}
                                                        	<a href="admin/modules/tangra_cms/vpage/vpage_system_attribute_edit.php?vpage_system_attribute_add_new=1&amp;vpt_sa={$system_attribute.id}&amp;_transit_vpage={$vpage->get_id()}" {popup text="Click to edit this record"}><img src="/img/modules/crystal_icons_small/16x16/edit.png" alt="Edit" width="16" height="16" border="0"/></a>                                                            
                                                            {/if}
                                                        </td>
                                                    	<td width="16">{if $system_attribute.vp_sa && !($vpage->get_online() && $system_attribute.required && !($vpage->get_cache() && ($settings_cache->get_locked() || $vpage->get_cache_locked())))}<a href="admin/modules/tangra_cms/vpage/vpage_system_attribute_del.php?delete={$system_attribute.vp_sa}&amp;_transit_vpage={$vpage->get_id()}" {popup text="Click to delete this system attribute"}><img src="/img/modules/crystal_icons_small/16x16/delete.png" alt="Delete" width="16" height="16" border="0"/></a>{else}<img src="/img/modules/crystal_icons_small/16x16/empty.png" alt="Placeholder" width="16" height="16" border="0"/>{/if}</td>
                                                        {/if}
                                                    </tr>
			                                        {/foreach}
                                                </table>                                                
                                                
                                                {else}
                                                <span class="empty_value">No system attributes set</span>
                                                {/if}
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>                        
                        
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Content items</td>
                                <td align="left" class="info_page_content_cell" colspan="2">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                       
                                        {if $cis}
                                        <tr>
                                            <td>
                                                <table width="100%" border="0" cellspacing="1" cellpadding="4"  class="metallic_grid_table">
                                                	<tr><td class="metallic_grid_header" colspan="9" align="center"><strong>Content items from template &quot;{$template_name}&quot;</strong></td></tr>
                                                	<tr>
                                                    	<td width="16" class="metallic_grid_header">&nbsp;</td>
                                                    	<td width="35%" class="metallic_grid_header"><strong>Name</strong></td>
                                                    	<td width="25%" class="metallic_grid_header"><strong>Type</strong></td>
                                                    	<td width="1%" class="metallic_grid_header">&nbsp;<strong>Required?</strong>&nbsp;</td>
                                                    	<td width="25%" class="metallic_grid_header"><strong>Exported as</strong></td>
                                                        {if !$vpage->get_sys_generated()}                                                                                                                
                                                    	<td width="16" class="metallic_grid_header">&nbsp;</td>
                                                    	<td width="16" class="metallic_grid_header">&nbsp;</td>
                                                    	<td width="16" class="metallic_grid_header">&nbsp;</td>                                                        
                                                    	<td width="16" class="metallic_grid_header">&nbsp;</td>                                  
                                                        {/if}                      
                                                    </tr>
               										{foreach from=$cis item=ci}                                        
                                                    <tr class="metallic_grid_body" onmouseover="this.className='metallic_grid_body_over';return true;" onmouseout="this.className='metallic_grid_body';return true;">
                                                    	<td>{if $ci.vp_ci}<img src="/img/modules/crystal_icons_small/16x16/led_green.png" alt="Filled" width="16" height="16" {popup text="Filled"} />{else}{if $ci.required}<img src="/img/modules/crystal_icons_small/16x16/led_red.png" alt="Not filled. You must fill it." width="16" height="16" {popup text="No content added. You must add content here"}  />{else}<img src="/img/modules/crystal_icons_small/16x16/led_yellow.png" alt="Not filled" width="16" height="16" {popup text="No content added"}  />{/if}{/if}</td>
                                                    	<td>{$ci.ci_name}</td>
                                                    	<td>{$ci.type}</td>
                                                    	<td>{if $ci.required}Yes{else}No{/if}</td>
                                                    	<td>{$ci.export_name}</td>
                                                        {if !$vpage->get_sys_generated()}                                                        
                                                        <td width="16">
                                                        	{if $ci.page_select_path &&  !$ci.vp_ci}
                                                                <a href="admin/modules/tangra_cms/ci/ci_select.php?selectfor={$ci.id}&amp;_transit_vpage={$vpage->get_id()}"><img src="/img/modules/crystal_icons_small/16x16/select.png" alt="Select" width="16" height="16" border="0"/></a>
															{else}
                                                                <img src="/img/modules/crystal_icons_small/16x16/empty.png" alt="Placeholder" width="16" height="16" border="0"/>
                                                            {/if}
                                                        </td>
                                                    	<td width="16">
															{if $ci.page_edit_path == $ci.page_manage_path}   
                                                        	<a href="{$ci.page_edit_path}?_transit_vpage={$vpage->get_id()}&amp;vpt_ci={$ci.id}&amp;{if $ci.vp_ci}{$ci.capture_prefix}_obj_id={$ci.vp_item_id}{else}{$ci.capture_prefix}_add_new=1{/if}"><img src="/img/modules/crystal_icons_small/16x16/edit.png" alt="edit" width="16" height="16" border="0" /></a>
                                                            {else}
                                                            	{if $ci.vp_ci}
                                                                	<a href="{$ci.page_manage_path}?manage={$ci.vp_item_id}&amp;_transit_vpage={$vpage->get_id()}"><img src="/img/modules/crystal_icons_small/16x16/manage.png" alt="manage" width="16" height="16" border="0" /></a>
                                                                {else}
                                                                	<a href="{$ci.page_edit_path}?_transit_vpage={$vpage->get_id()}&amp;vpt_ci={$ci.id}&amp;{$ci.capture_prefix}_add_new=1"><img src="/img/modules/crystal_icons_small/16x16/edit.png" alt="edit" width="16" height="16" border="0" /></a>                                                          
                                                                {/if}
                                                            {/if}
                                                        </td>
                                                    	<td width="16">{if $ci.vp_ci && !($vpage->get_online() && $ci.required && !($vpage->get_cache() && ($settings_cache->get_locked() || $vpage->get_cache_locked())))}<a href="admin/modules/tangra_cms/vpage/vpage_manage.php?unlink={$ci.vp_ci}&amp;manage={$vpage->get_id()}" {popup text="Click to unlink page and content item"}><img src="/img/modules/crystal_icons_small/16x16/link_break.png" alt="Unlink" width="16" height="16" border="0"/></a>{else}<img src="/img/modules/crystal_icons_small/16x16/empty.png" alt="Placeholder" width="16" height="16" border="0"/>{/if}</td>                                                        
                                                    	<td width="16">{if $ci.vp_item_id && !($vpage->get_online() && $ci.required && !($vpage->get_cache() && ($settings_cache->get_locked() || $vpage->get_cache_locked())))}<a href="{$ci.page_delete_path}?del={$ci.vp_item_id}&amp;vp_ci={$ci.vp_ci}&amp;_transit_vpage={$vpage->get_id()}" {popup text="Click to delete this content item"}><img src="/img/modules/crystal_icons_small/16x16/delete.png" alt="Delete" width="16" height="16" border="0"/></a>{else}<img src="/img/modules/crystal_icons_small/16x16/empty.png" alt="Placeholder" width="16" height="16" border="0"/>{/if}</td>                                                        
                                                        {/if}
                                                    </tr>
			                                        {/foreach}
                                                </table>
                                            </td>
                                        </tr>
                                        {else}
                                        <tr><td><span class="no_value">No items added.</span></td></tr>
                                        {/if}                                        
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Linked to categories</td>                            
                            	<td class="info_page_content_cell" >
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td align="left">
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td>
                                                        {foreach from=$categories item=cat_arr}
                                                            {foreach from=$cat_arr item=cat name=cat_loop}
                                                                <a href="admin/modules/tangra_cms/category/category_content.php?_transit_category={$cat.id}">{$cat.title}</a>{if !$smarty.foreach.cat_loop.last} > {/if}
                                                            {/foreach}<br />
                                                        {foreachelse}
                                                        <span class="no_value">None selected</span>
                                                        {/foreach}
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td class="info_page_link_cell" align="center" width="160" style="padding:0px; border: 0px;"><a href="admin/modules/tangra_cms/vpage/vpage_categories.php?_transit_vpage={$vpage->get_id()}" class="action_manage">Manage categories</a></td>                                                                                                                     
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Menu items linked to this page</td>                            
                            	<td class="info_page_content_cell" colspan="2">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td align="left">
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td>
                                                            {foreach from=$items_linking_to_vpage item=r}
                                                                    {foreach from=$r item=i name=item_loop}
                                                                    {if $smarty.foreach.item_loop.first}
                                                                        <a href="admin/modules/tangra_cms/menu/menu_manage.php?manage={$i.id}">{$i.title}</a>
                                                                    {else}
                                                                        <a href="admin/modules/tangra_cms/menu/item_types/menu_item_vpage_manage.php?manage={$i.id}&amp;_transit_menu={$i.menu_id}">{$i.label}</a>
                                                                    {/if}
															        {if !$smarty.foreach.item_loop.last} > {else}{if $i.published} <img src="/img/modules/tangra_cms/online_small.png" alt="" {popup text="Published"}/>{else}<img src="/img/modules/tangra_cms/offline_small.png" alt="" {popup text="Not published"}/>{/if}{/if}
                                                                    {/foreach}
                                                                    <br />
                                                            {/foreach}
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>                            
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>        
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                <tr>
                    <td class="info_page_section_title" width="100">Cache</td>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="4">
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Cache?</td>
                                <td align="left" class="info_page_content_cell">
                                	{if $settings_cache->get_switch()}
                                    	{if $vpage->get_cache()}
                                        	Yes
                                            {if $settings_cache->get_locked()}
                                            	<span class="status_error">Global cache lock in effect</span>
                                            {else}
                                                {if $vpage->get_cache_locked()}
                                                     (<span class="status_error">locked</span>) 
                                                     <a href="admin/modules/tangra_cms/vpage/vpage_manage.php?manage={$vpage->get_id()}&amp;cache_lock=0">Unlock cache</a>
                                                {else} (<span class="status_ok">not locked</span>) <a href="admin/modules/tangra_cms/vpage/vpage_manage.php?manage={$vpage->get_id()}&amp;cache_lock=1" {popup text="Pages with locked cache will not regenerate cache file under no circumstances (usefull for testing changes in content with preview)"}>Lock cache</a>
                                                {/if} | 
                                                {if $cache_file}
                                                    <a href="admin/modules/tangra_cms/vpage/vpage_view_cache.php?vpage={$vpage->get_id()}" target="_blank" {popup text="Click to view the cache"}>{$cache_file|truncate:50}</a> <span class="small_text">({$cache_file_mtime})</span> | <a href="admin/modules/tangra_cms/vpage/vpage_manage.php?manage={$vpage->get_id()}&amp;cache_clear=1">Clear cache</a>
                                                {else}
                                                    Not cached
                                                {/if}
                                            {/if}
                                        {else}No
                                        {/if}
                                    {else}
                                        {if $vpage->get_cache()} Yes, but 
                                        {else} No and
                                        {/if} global switch for cache is OFF
                                    {/if}
                                </td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Cache expiry</td>
                                <td align="left" class="info_page_content_cell">{if $vpage->get_cache_expiry()}{if $vpage->get_cache_expiry() > 0}{$vpage->get_cache_expiry()} seconds{else}Never{/if}{else}Using global cache setting ({$settings_cache->get_expiry()} seconds){/if}</td>
                            </tr>
                        </table>
                    </td>
                    <td class="info_page_link_cell" align="center" width="160">
                    	{if !$template_hard_cache}
	                   	<a href="admin/modules/tangra_cms/vpage/vpage_cache_edit.php?vpage_cache_obj_id={$vpage->get_id()}" class="action_edit">Edit</a>
                        {/if}
                    </td>                    
                </tr>
            </table>
        </td>
    </tr>     
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                <tr>
                    <td class="info_page_section_title" width="100">sitemap.xml</td>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="4">
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Include in sitemap?</td>
                                <td align="left" class="info_page_content_cell">{if $vpage->get_in_sitemap()}Yes{else}No{/if}</td>
                            </tr>                            
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Sitemap priority/weight</td>
                                <td align="left" class="info_page_content_cell">{if $vpage->get_in_sitemap()}{math equation="x / 10" x=$vpage->get_sitemap_weight()}{else}n/a{/if}</td>
                            </tr>            
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Sitemap change frequency</td>
                                <td align="left" class="info_page_content_cell">
                                	{if $vpage->get_in_sitemap()}
                                    	{if $vpage->get_sitemap_change_freq() == 0}always{/if}
                                    	{if $vpage->get_sitemap_change_freq() == 1}hourly{/if}
                                    	{if $vpage->get_sitemap_change_freq() == 2}daily{/if}
                                    	{if $vpage->get_sitemap_change_freq() == 3}weekly{/if}
                                    	{if $vpage->get_sitemap_change_freq() == 4}monthly{/if}
                                    	{if $vpage->get_sitemap_change_freq() == 5}yearly{/if}
                                    	{if $vpage->get_sitemap_change_freq() == 6}never{/if}
                                    {else}n/a{/if}
                                </td>
                            </tr>                                               
                        </table>
                    </td>
                    <td class="info_page_link_cell" align="center" width="160">
                        <a href="admin/modules/tangra_cms/vpage/vpage_sitemap_edit.php?vpage_sitemap_obj_id={$vpage->get_id()}" class="action_edit">Edit</a>                            
                    </td>
                </tr>
            </table>
        </td>
    </tr>        
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                <tr>
                    <td class="info_page_section_title" width="100">Common info</td>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="4">
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Created</td>
                                <td align="left" class="info_page_content_cell">{$vpage->get_created()}</td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Created by</td>
                                <td align="left" class="info_page_content_cell">{$created_by}</td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Last modified</td>
                                <td align="left" class="info_page_content_cell">{$vpage_last_modified}</td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">Last modified by</td>
                                <td align="left" class="info_page_content_cell">{$last_modified_by}</td>
                            </tr>
                            <tr>
                                <td align="right" width="250" class="info_page_label_cell">System generated?</td>
                                <td align="left" class="info_page_content_cell">{if $vpage->get_sys_generated()}<span class="status_error"><strong>Yes</strong></span> <a href="admin/modules/tangra_cms/vpage/vpage_sys_gen.php?_transit_vpage={$vpage->get_id()}&amp;sys_gen=0">Turn OFF &quot;system generated&quot; flag</a>{else}No <a href="admin/modules/tangra_cms/vpage/vpage_sys_gen.php?_transit_vpage={$vpage->get_id()}&amp;sys_gen=1">Turn ON &quot;system generated&quot; flag</a>{/if}</td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>    
</table>